/**
 * 全站公共业务对象
 */
MPT.addObject('Site', function(){
	
	// 重新获取验证码
	this.getRandcode = function(_img_elm)
	{
		Debug.info('[SiteUtil getRandcode] 获取验证码');
		_img_elm.src = MPT.Config.global_ctx+'/authimg?t='+Math.random();
	};
	
	this.getConstellations= function()
	{
		return {
			"1":"白羊座",
			"2":"金牛座",
			"3":"双子座",
			"4":"巨蟹座",
			"5":"狮子座",
			"6":"处女座",
			"7":"天秤座",
			"8":"天蝎座",
			"9":"射手座",
			"10":"魔羯座",
			"11":"水瓶座",
			"12":"双鱼座"
		};
	};
	
	this.getBloods= function()
	{
		return {
			"1":"O 型血",
			"2":"A 型血",
			"3":"B 型血",
			"4":"AB 型血",
			"5":"稀有血型"
		};
	};
	
	this.getLoveStatus= function()
	{
		return {
			"1":"单身",
			"2":"恋爱中",
			"3":"订婚",
			"4":"已婚",
			"5":"离异",
			"6":"其它"
		};
	};
	
	this.getGangDicts= function()
	{
		return {
			"1":"武尊",
			"2":"峨眉",
			"3":"青城",
			"4":"百花",
			"5":"仙禽"
		};
	};
	
	this.getServerZone = function(_cb_fun)
	{
		jQuery.getScript('http://kefu.shumenol.com/js/serverzone.js', function(){
			
			// 解析数据成可用格式
			var a = eval("(" + servers + ")");
			var _t = "{";
			for(var i = 0 ; i< a.length ; i++){
				_t += "\""+a[i].id+"\":\""+a[i].name+"\",";
			}
			_t = _t.substring(0, _t.length-1);
			_t += "}";
			var areaList = eval("(" + _t + ")");
			
			// 执行回调
			_cb_fun(areaList);
			
		});
	};
	
});